import request from '@/utils/request'

// 查询待检入库管理列表
export function listPendingInspection(query) {
  return request({
    url: '/InboundManagement/pendingInspection/list',
    method: 'get',
    params: query
  })
}

// 查询待检入库管理详细
export function getPendingInspection(inspectionId) {
  return request({
    url: '/InboundManagement/pendingInspection/' + inspectionId,
    method: 'get'
  })
}

// 新增待检入库管理
export function addPendingInspection(data) {
  return request({
    url: '/InboundManagement/pendingInspection',
    method: 'post',
    data: data
  })
}

// 修改待检入库管理
export function updatePendingInspection(data) {
  return request({
    url: '/InboundManagement/pendingInspection',
    method: 'put',
    data: data
  })
}

// 删除待检入库管理
export function delPendingInspection(inspectionId) {
  return request({
    url: '/InboundManagement/pendingInspection/' + inspectionId,
    method: 'delete'
  })
}
